package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 会员账号商户服务费流水
 * Created by zhangjh on 2017/03/07.
 */
@Entity
@Table(name = "mall_member_merchant_service_fee_flow")
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class MallMemberMerchantServiceFeeFlow extends IDEntityMall {

    /**
     * 流水号
     */
    @Column(columnDefinition = "varchar(100) comment '流水号'")
    private String seqNo;

    /**
     * 平台ID
     */
    @Column(columnDefinition = "bigint(20) comment '平台ID'")
    private Long mallId;

    /**
     * 会员账号ID
     */
    @Column(columnDefinition = "bigint(20) comment '平台商户ID'")
    private Long mallMemberId;

    /**
     * 结算日
     */
    @Column(columnDefinition = "varchar(30)  comment '结算日'")
    private String settlementDate;

    /**
     * 结算日商户数
     */
    @Column(columnDefinition = "int comment '结算日商户数'")
    private Integer merchantCounts;

    /**
     * 商户服务费/户
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '商户服务费/户'")
    private BigDecimal businessServiceFee;

    /**
     * 商户服务费系数
     */
    @Column(columnDefinition = "varchar(200) comment '商户服务费系数'")
    private String businessServiceFeeNum;

    /**
     * 金额
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '金额'")
    private BigDecimal amount;

    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(5000)  comment '备注'")
    private String remark;

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Long getMallMemberId() {
        return mallMemberId;
    }

    public void setMallMemberId(Long mallMemberId) {
        this.mallMemberId = mallMemberId;
    }

    public String getSettlementDate() {
        return settlementDate;
    }

    public void setSettlementDate(String settlementDate) {
        this.settlementDate = settlementDate;
    }

    public Integer getMerchantCounts() {
        return merchantCounts;
    }

    public void setMerchantCounts(Integer merchantCounts) {
        this.merchantCounts = merchantCounts;
    }

    public BigDecimal getBusinessServiceFee() {
        return businessServiceFee;
    }

    public void setBusinessServiceFee(BigDecimal businessServiceFee) {
        this.businessServiceFee = businessServiceFee;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getBusinessServiceFeeNum() {
        return businessServiceFeeNum;
    }

    public void setBusinessServiceFeeNum(String businessServiceFeeNum) {
        this.businessServiceFeeNum = businessServiceFeeNum;
    }

    @Override
    public String toString() {
        return "MallMemberMerchantServiceFeeFlow{" +
                "seqNo='" + seqNo + '\'' +
                ", mallId=" + mallId +
                ", mallMemberId=" + mallMemberId +
                ", settlementDate='" + settlementDate + '\'' +
                ", merchantCounts=" + merchantCounts +
                ", businessServiceFee=" + businessServiceFee +
                ", businessServiceFeeNum='" + businessServiceFeeNum + '\'' +
                ", amount=" + amount +
                ", remark='" + remark + '\'' +
                '}';
    }
}
